//
//  UIScrollView+Addition.h
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, ScrollDirection) {
    JKScrollDirectionUp,
    JKScrollDirectionDown,
    JKScrollDirectionLeft,
    JKScrollDirectionRight,
    JKScrollDirectionWTF
};

@interface UIScrollView (Addition)
@property(nonatomic) CGFloat mt_contentWidth;
@property(nonatomic) CGFloat mt_contentHeight;
@property(nonatomic) CGFloat mt_contentOffsetX;
@property(nonatomic) CGFloat mt_contentOffsetY;

- (CGPoint)mt_topContentOffset;
- (CGPoint)mt_bottomContentOffset;
- (CGPoint)mt_leftContentOffset;
- (CGPoint)mt_rightContentOffset;

- (ScrollDirection)mt_ScrollDirection;

- (BOOL)mt_isScrolledToTop;
- (BOOL)mt_isScrolledToBottom;
- (BOOL)mt_isScrolledToLeft;
- (BOOL)mt_isScrolledToRight;
- (void)mt_scrollToTopAnimated:(BOOL)animated;
- (void)mt_scrollToBottomAnimated:(BOOL)animated;
- (void)mt_scrollToLeftAnimated:(BOOL)animated;
- (void)mt_scrollToRightAnimated:(BOOL)animated;

- (NSUInteger)mt_verticalPageIndex;
- (NSUInteger)mt_horizontalPageIndex;

- (void)mt_scrollToVerticalPageIndex:(NSUInteger)pageIndex animated:(BOOL)animated;
- (void)mt_scrollToHorizontalPageIndex:(NSUInteger)pageIndex animated:(BOOL)animated;
@end
